/*
 * Copyright (c) 2025 Industrial Software Feature Database
 */
package com.comac.ins.cax.service.strategy.impl;

import com.comac.ins.cax.service.strategy.ConversionStrategy;

import java.io.IOException;

/**
 * @author yk
 * @desc 转换策略上下文
 * @date 2024-06-18 16:20
 */
public class ConversionContext {
    private final ConversionStrategy strategy;

    public ConversionContext(ConversionStrategy strategy) {
        this.strategy = strategy;
    }

    /**
     * 执行转换。
     *
     * @param inputFilePath 输入文件路径
     */
    public boolean executeConversion(String inputFilePath) throws IOException, InterruptedException {
        return strategy.convert(inputFilePath);
    }
}
